<template>
  <div id="app">
    <!-- 引入页头 -->
    <my-header v-if="$route.meta.hidderHeader !== true" />
    <!-- 引入主体 -->
    <router-view />
    <!-- 引入页脚 -->
    <my-footer v-if="$route.meta.hidderHeader !== true" />
  </div>
</template>
<script>
import MyFooter from "./components/MyFooter.vue";
import MyHeader from "./components/MyHeader.vue";
export default {
  components: { MyHeader, MyFooter },
};
</script>


<style lang="scss">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

nav {
  padding: 30px;

  a {
    font-weight: bold;
    color: #2c3e50;

    &.router-link-exact-active {
      color: #42b983;
    }
  }
}
</style>
<style src="./assets/css/reset.css">
</style>
